package com.alks.function.service;

import com.alks.entity.data.entity.SdPosition;
import com.alks.entity.data.response.ResponseInfo;
import com.alks.function.data.request.sys.PcCuttingProcessDetailRequest;
import com.alks.function.data.request.sys.SdPositionRequest;
import com.alks.function.data.request.sys.SdVendorAddRequest;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;

public interface SdPositionService extends IService<SdPosition> {

    ResponseInfo GetSdPosition(SdPositionRequest request);

    ResponseInfo AddSdPosition(SdPosition sdPosition);

    ResponseInfo delPosition(String posId);

    ResponseInfo updateSdPosition(SdPosition sdPosition);

    ResponseInfo ProcessDataQuery();

    ResponseInfo pcCuttingProcess(String processCode, String processName, Integer choose);

    ResponseInfo PcCuttingProcessDetailQuery(String processCode);

    ResponseInfo PcCuttingProcessDetail(PcCuttingProcessDetailRequest request, Integer choose);

    ResponseInfo SdVendorAdd(SdVendorAddRequest request);

    ResponseInfo SdVendorList(SdVendorAddRequest request);

    ResponseInfo SdVendorUpdate(SdVendorAddRequest request);

    ResponseInfo SdVendorDel(SdVendorAddRequest request);

    void exportSdVendor(SdVendorAddRequest request, HttpServletResponse response);

    /**
     * 工具调用接口
     * 通过厂商ID获取名称 ，不存在则抛出异常
     * @param vendorNo 厂商ID
     */
    String getNameByNo(String vendorNo);
}
